﻿<UserControl x:Class="OI.Controls.TextMarker"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" mc:Ignorable="d"
    >

    <Grid x:Name="LayoutRoot" Background="#60FFFFFF" RenderTransformOrigin="0.0, 0.5" Loaded="OnLoaded">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        
        <Controls:ButtonSpinner Grid.Column="0" Spin="OnSpin" Height="32" VerticalAlignment="Bottom" />
        <TextBox Name="TBox" Height="Auto" Grid.Column="1" VerticalAlignment="Center" Margin="2" 
                 HorizontalContentAlignment="Stretch" KeyUp="TextBoxKeyUp" FontSize="20" MinWidth="64"/>
   
        <Grid.RenderTransform>
            <ScaleTransform ScaleX="1.0" ScaleY="-1.0" />
        </Grid.RenderTransform>
    </Grid>
</UserControl>
